package ink.zhaohui.javaStudy;

import ink.zhaohui.javaStudy.annotation.*;

public class Car {

    @Monitor
    void run(int m) {
        try {
            System.out.println("before sleep.");
            java.lang.Thread.sleep(1000 * m);
            System.out.println("after  sleep.");
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}